package com.fruit.web.bo.impl;

import java.io.Serializable;


import java.util.Set;

import com.fruit.utils.DESPlusUtil;
import com.fruit.web.bo.AbstractGoods;
import com.fruit.web.bo.Product;

public class Goods extends AbstractGoods implements Serializable {
	
	private static final long serialVersionUID = -8106629465344224739L;
	private Productunit unit;
	private Stakeholder provider;	
	public Goods(){
		
	}
	
	public Productunit getUnit() {
		return unit;
	}

	public void setUnit(Productunit unit) {
		this.unit = unit;
	}

	public Stakeholder getProvider() {
		return provider;
	}

	public void setProvider(Stakeholder provider) {
		this.provider = provider;
	}
	
	public String getDesId() {
		return DESPlusUtil.encrypt(this.getId().toString());
	}
	public String getDesCode() {
		return DESPlusUtil.encrypt(this.getCode());
	}
	public String getDesPrimaryCategoryCode(){
		return DESPlusUtil.encrypt(this.getPrimaryCategoryCode());
	}
	
}
